﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace DatabaseSynchronizer {

    public static class FileInfoHelpers {

        public static int PatchId(this FileInfo fileInfo) {

            int result;
            int.TryParse(fileInfo.Name.Substring(0, fileInfo.Name.IndexOf('.', 0)), out result);
            return result;
        
        }
    }
}
